package com.ruoyi.house_sale.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.ruoyi.house_sale.mapper.ProjectInfoMapper;
import com.ruoyi.house_sale.domain.ProjectInfo;
import com.ruoyi.house_sale.service.IProjectInfoService;

import javax.annotation.Resource;

/**
 * 项目信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-28
 */
@Service("IProjectInfoService")
public class ProjectInfoServiceImpl implements IProjectInfoService
{
    @Resource
    private ProjectInfoMapper projectInfoMapper;

    /**
     * 查询项目信息
     * 
     * @param projectid 项目信息主键
     * @return 项目信息
     */
    @Override
    public ProjectInfo selectProjectInfoByProjectid(Long projectid)
    {
        return projectInfoMapper.selectProjectInfoByProjectid(projectid);
    }

    /**
     * 查询项目信息列表
     * 
     * @param projectInfo 项目信息
     * @return 项目信息
     */
    @Override
    public List<ProjectInfo> selectProjectInfoList(ProjectInfo projectInfo)
    {
        return projectInfoMapper.selectProjectInfoList(projectInfo);
    }

    /**
     * 新增项目信息
     * 
     * @param projectInfo 项目信息
     * @return 结果
     */
    @Override
    public int insertProjectInfo(ProjectInfo projectInfo)
    {
        return projectInfoMapper.insertProjectInfo(projectInfo);
    }

    /**
     * 修改项目信息
     * 
     * @param projectInfo 项目信息
     * @return 结果
     */
    @Override
    public int updateProjectInfo(ProjectInfo projectInfo)
    {
        return projectInfoMapper.updateProjectInfo(projectInfo);
    }

    /**
     * 批量删除项目信息
     * 
     * @param projectids 需要删除的项目信息主键
     * @return 结果
     */
    @Override
    public int deleteProjectInfoByProjectids(Long[] projectids)
    {
        return projectInfoMapper.deleteProjectInfoByProjectids(projectids);
    }

    /**
     * 删除项目信息信息
     * 
     * @param projectid 项目信息主键
     * @return 结果
     */
    @Override
    public int deleteProjectInfoByProjectid(Long projectid)
    {
        return projectInfoMapper.deleteProjectInfoByProjectid(projectid);
    }

    @Override
    public List<ProjectInfo> findAllProject() {
        return projectInfoMapper.findAllProject();
    }
}
